package com.zhuang.spring.factory;

import com.zhuang.spring.pojo.User;
import org.springframework.beans.factory.FactoryBean;

/**
 * description: UserFactoryBean
 * date: 2022/10/5 19:41
 * author: Zhuang
 * version: 1.0
 */
public class UserFactoryBean implements FactoryBean<User> {
    @Override
    public User getObject() throws Exception {
        return new User(1,"zk","123",22);
    }
    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
